Ext.define('wmf.model.role.role', {
    extend: 'Ext.data.Model',
    fields: [
        { name: 'name', type: 'string' },
        { name: 'enname', type: 'string' },
        { name: 'memo', type: 'string' },
        { name: 'iscore', type: 'string' },
        { name: 'ownertype', type: 'string' },
        { name: 'ownertype1', type: 'string' ,convert: function(v, record){
			var value = record.data.ownertype;
			if(value == "1"){
				return "框架";
			}else if(value == "2"){
				return "列表";
			}else{
				return value;
			}
        }},
        { name: 'handler', type: 'string' },
        { name: 'resourceId', type: 'string' },
        { name: 'checked', type: 'string' },
        { name: 'status', type: 'string' },
		{ name: 'status1', type: 'string' ,convert: function(v, record){
			var value = record.data.status;
			if(value == "1"){
				return "启动";
			}else{
				return "失效";
			}
        }},
        { name: 'id', type: 'int' }
    ]
});